package com.fdb.efp.nls.service.impl;

import com.fdb.basic.framework.core.base.FrameworkService;
import com.fdb.efp.nls.service.dao.PsdRscWarnLoanTempHisDao;
import com.fdb.efp.nls.service.domain.PsdRscWarnLoanTempHis;
import com.fdb.efp.nls.service.facade.PsdRscWarnLoanTempHisService;
import com.fdb.efp.nls.service.vo.PsdRscWarnLoanTempHisVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("psdRscWarnLoanTempHisService")
public class PsdRscWarnLoanTempHisServiceImpl implements PsdRscWarnLoanTempHisService, FrameworkService {

    private static Logger logger = LoggerFactory.getLogger(PsdRscWarnLoanTempHisServiceImpl.class);

    @Autowired
    private PsdRscWarnLoanTempHisDao psdRscWarnLoanTempHisDao;

    @Override
    public List<PsdRscWarnLoanTempHisVo> queryByCertCodeAndRiskLevel(PsdRscWarnLoanTempHisVo psdRscWarnLoanTempHis) throws Exception {
        return (List<PsdRscWarnLoanTempHisVo>) beansCopy(psdRscWarnLoanTempHisDao.queryByCertCodeAndRiskLevel(beanCopy(psdRscWarnLoanTempHis, new PsdRscWarnLoanTempHis())), PsdRscWarnLoanTempHisVo.class);
    }

}
